package app.fugema.shop.main.order.model;

import com.base.common.view.adapter.bean.HeaderBean;

public class SimpleAddressBean extends HeaderBean
{
    /**
     * Id : 34
     * ShipTo : 小贾
     * Phone : 13125043082
     * Address : 湖北省 襄阳市 樊城区 王寨街道 王寨中心学校-小明珠幼儿园 56号
     * RegionId : 26122
     */

    private int Id;
    private String ShipTo;
    private String Phone;
    private String Address;
    private int RegionId;

    public int getId() {
        return Id;
    }

    public void setId(int Id) {
        this.Id = Id;
    }

    public String getShipTo() {
        return ShipTo;
    }

    public void setShipTo(String ShipTo) {
        this.ShipTo = ShipTo;
    }

    public String getPhone() {
        return Phone;
    }

    public void setPhone(String Phone) {
        this.Phone = Phone;
    }

    public String getAddress() {
        return Address;
    }

    public void setAddress(String Address) {
        this.Address = Address;
    }

    public int getRegionId() {
        return RegionId;
    }

    public void setRegionId(int RegionId) {
        this.RegionId = RegionId;
    }


    public static SimpleAddressBean getSimpleAddress(AddressResult.AddressBean addrInfo)
    {
        SimpleAddressBean simple = new SimpleAddressBean();
        simple.setId( addrInfo.getId() );
        simple.setShipTo( addrInfo.getShipTo() );
        simple.setPhone( addrInfo.getPhone() );
        simple.setAddress(addrInfo.getRegionFullName().replace(" ","")+addrInfo.getAddress()  +  addrInfo.getAddressDetail() );
        simple.setRegionId( addrInfo.getRegionId() );
        return simple;
    }

}
